package com.qfjy.homework.YangJin;

/**
 * @author : --
 * @version :1.0
 * @date : 2022/6/29 18:54
 */
public class TestDemo {
    public static void main(String[] args) {
        //股票
        Stock Stock = new Stock();
        //买股票
        BuyStock buyStockOrder = new BuyStock(Stock);
        //卖股票
        SellStock sellStockOrder = new SellStock(Stock);

        //执行命令
        Broker broker = new Broker();

        broker.takeOrder(buyStockOrder);

        broker.takeOrder(sellStockOrder);

        broker.placeOrders();
    }
}
